I keep seeing
DEBUG Exception while resolving variable 'exception_type' in template 'unknown'.
in my django logs, followed by
VariableDoesNotExist: Failed lookup for key [exception_type] in
followed by what looks like a string representation of a a list of dictionaries containing the request, and my entire settings.py file.
Another example:
DEBUG Exception while resolving variable 'lastframe' in template 'unknown'
I feel like I just don't have enough information to debug this. All I know is there's a variable called exception_type in an unknown template. My code doesn't contain the string 'exception_type' anywhere.
How can I debug this? Where should I be looking?
The point wasn't variable lastframe or variable exception_type you gotta checkout your url, all of the urls, not just back-end url but also the front-end url.
Check out the front-end urls and middleware (if you wrote your own middleware files, the best check way is testing admin on your url).
I got the same kind of question, when I checked url and middleware, I solved the issue easily.